//
//  XJSystemMSgCell.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/7/2.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJSystemMSgCell.h"
@interface XJSystemMSgCell()
@property (weak, nonatomic) IBOutlet UILabel *neiRongLB; //消息内容
@property (weak, nonatomic) IBOutlet UILabel *timeLb; //时间

@end

@implementation XJSystemMSgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setModel:(XJMsgModel *)model {
    _model = model;
    
    self.neiRongLB.text = model.content;
    
    NSString *timeStr = [NSString stringWithFormat:@"%@",model.create_time];
    self.timeLb.text = [NSString timeStrFromTimeStamp:timeStr];
}

@end
